#include <iostream>
#include <cstring>

using namespace std;

int main() {
    char a[110];
    int ans[26] = {0};  //记录每个字母出现的次数
    int length;//字符长度
    int maxn, minn;
    int delta; //差值
    scanf("%s", a);
    length = strlen(a);
    for (int i = 0; i < length; i++) {
        ans[a[i] - 'a']++;   //统计每个字母出现的次数
    }
    maxn = 0;
    minn = 10000; //对最小值、最大值进行初始化
    for (int i = 0; i < 26; i++) {  //遍历记录字母出现次数的数组，找最大值最小值
        if (ans[i] > maxn) {
            maxn = ans[i];
        }
        if (ans[i] != 0 && ans[i] < minn) {
            minn = ans[i];
        }
    }
    delta = maxn - minn;
    if (delta == 0 || delta == 1) {
        printf("No Answer\n0\n");
        return 0;
    }
    for (int i = 2; i * i <= delta; ++i) {
        if (delta % i == 0) {
            printf("No Answer\n0\n");
            return 0;
        }
    }
    printf("Lucky Word\n%d\n", maxn - minn);
    return 0;
}
